package com.example.tests;

import org.testng.annotations.Test;

public class ContactCreate extends BaseClass {
	@Test
	public void testAddContact() throws Exception {
		app.getNavigationHelper().openMainPage();
		app.getNavigationHelper().goToAddContact();
		ContactData contact = new ContactData();
		contact.firstName = "Dima";
		contact.lastName = "Horov";
		contact.address = "Gromova 1-101";
		contact.telHome = "1111111";
		contact.mobile = "2222222";
		contact.telWork = "3333333";
		contact.email = "horov@mail.ru";
		contact.email2 = "horov2@mail.ru";
		contact.bDay = "7";
		contact.bMonth = "February";
		contact.bYear ="1978";
		contact.group = "friends";
		contact.address2 = "Malinina 2-202";
		contact.telHome2 = "4444444";		
		app.getContactHelper().fillContactForm(contact);
		app.getContactHelper().submitContactCreate();
		app.getNavigationHelper().goToHomePage();
	}
}
	
	


